<ion-view  animation="slide-in-up" cache-view="false">
    <style>
        ion-view .hide{display: block!important;}
    </style>
    <ion-content overflow-scroll="true" has-bouncing="true" on-scroll="true">

        <ion-slide-box on-slide-changed="slideHasChanged($index)" does-continue="1" class="banner" delegate-handle="SignAds" slide-interval="2000" auto-play="true">
            <ion-slide ng-repeat="x in SignAds">
                <a href="{{x.url}}"><img ng-src="{{x.thumb}}"></a>
            </ion-slide>
        </ion-slide-box>
        <div class="tabs goods-tabs">
            <a class="tab-item" ng-click="select()">
                分类
                <i ng-class="up"></i>
            </a>
            <a class="tab-item" ng-click="check('')">
                综合
                <!--<i ng-class="up"></i>-->
            </a>
            <a class="tab-item" ng-click="check('clicks')">
                人气
                <i ng-class="clicks_class" ng-show="clicks"></i>
            </a>
            <a class="tab-item" ng-click="check('sale_num')">
                销量
                <i ng-class="sale_num_class" ng-show="sale_num"></i>
            </a>
        </div>
        <div class="showgoods">
            <div class="goods-select-block" ng-show="showSelect" ng-click="hideSelect()"></div>
            <div class="goods-select row" ng-show="showSelect">
                <div class="col col-50">
                    <ul class="list">
                        <li class="item" ng-repeat="x in category" ng-class="x.select" ng-click="select_child(x.cate_id)">{{x.name}}</li>
                    </ul>
                </div>
                <div class="col ">
                    <ul class="list col2">
                        <li class="item" ng-repeat="x in category_child" ng-class="x.select" ng-click="select_category_child(x.cate_id)">{{x.name}}</li>
                    </ul>
                </div>
            </div>


            <div class="list xy-goods-list list-goodsinfo" >

                <div class="item item-thumbnail-left" ng-repeat="item in goods_list" >
                    <img ng-src="{{item.thumb}}" err-src="vendor/images/goods_thumb.png" ui-sref="goods.info({goods_id:item.goods_id})">
                    <h2>{{item.title}}</h2>
                    <div class="xy-goods-item">
                        <div class="xy-goods-content">
                            月售{{item.sale_per_month}}&nbsp;|&nbsp;剩余{{item.total}}
                        </div>
                        <div class="xy-goods-num">
                            <i class="ion-ios-plus-outline xy-goods-num-icon" ng-click="plusnum()"></i>
                            <span ng-show="item.num">{{item.num}}</span>
                            <i class="ion-ios-minus-outline xy-goods-num-icon" ng-show="item.num" ng-click="minusnum()"></i>
                        </div>
                    </div>
                    <div class="xy-goods-price">￥{{item.price}}</div>
                </div>
            </div>
        </div>
        <div class="block"></div>

    </ion-content>
    <ion-tabs class="tabs-icon-bottom goods-bottom">
        <div class="row">
            <div class="col cart-btn">
                <i class="ion ion-ios-cart-outline" style="color: #000;"><div class="num">{{goods_num}}</div></i>
                共计<span>￥{{total_price}}</span>
            </div>
            <div class="col col-33">
                <button class="goods-btn" ng-click="submit()">选好了</button>
            </div>
        </div>
    </ion-tabs>
</ion-view>